<!-- settings.tpl -->
{config_load file=acs_lang_conf}

<legend>{#acs_Settings#}</legend>

{if $templatelite.post.submit && !$msg}
	<div class="alert alert-success">
		<button class="close" data-dismiss="alert">&times;</button>
		{#acs_Saved#}
    </div>
{elseif $msg}
	<div class="alert alert-error">
		<button class="close" data-dismiss="alert">&times;</button>
		{$msg}
    </div>
{/if}

<form action="" method="POST" id="thisform">
	<p>{#acs_Form_Label#}</p>
	<input type="text" name="acs_id" {if $settings.acs_id != ''}value="{$settings.acs_id}"{else}placeholder="##################"{/if} size="40" maxlength="50" />
	<input type="submit" name="submit" value="{#acs_Form_Submit#}" class="btn btn-primary" />
</form>
<br />
<strong>How to use</strong><br />
You can get your Embedly Api Key <a href="http://app.embed.ly/signup" target=_blank">here</a>.<br /><br />
Simply submit a link from one of the providers listed below under the Providers section, and content will automatically be embedded in the submissions story page. If the link being submitted is not from one of the providers listed below the Auto Content Scraper will attemopt to add an embedly block.<br /><br />

<strong>Upload Module Settings</strong><br />
You can now allow people to embed their own content rather than what is being scraped by activating the included custom upload module.<br />
Make sure your <a href="{$my_pligg_base}/module.php?module=upload">upload module settings</a> for "Allowed File Types" has the types of files you wish to allow people to upload. When people upload a file it will be embeded in the story overriding embedly. <br />
The file types the Auto Content Scraper Supports are as follows.  <br /><br />
png jpg gif jpeg flv kmz mov avi wmv divx rm ram asx mpe 3gp mp4 mpg m3u mpeg asf <br />  <br />
Each file type you want to allow should be seperated by a space.  <br />  <br />

 Example:<br />
 <img src="{$my_pligg_base}/modules/acs/images/file-types.png"><br />
<br />
Now you will need to set up the section titled "Where to embed story file list"<br />
You want to select tpl_summary_re_story_content as shown in the image below<br />  <br />
<img src="{$my_pligg_base}/modules/acs/images/attach-embed.png"><br />  <br />




<strong>Troubleshootig</strong><br />
Make sure your Pligg Settings >> Outgoing >> Enable Outgoing Links >> is set to false.<br />
Make sure you are not trying to submit a secure url. Always use http:// and not https://<br />
Allowing users to embed their own content by uploading larger files such as videos may require you to modify your php.ini file. This is not controlled by Pligg or the Auto Content Scraper. These limitations are set by your hosting provider. Contact your your hosting provider for support.
<br /><br />
<strong>Providers</strong><br />
<img src="./modules/acs/images/providers.png">
{config_load file=acs_pligg_lang_conf}
<!--/settings.tpl -->